#ifndef MAN_H
#define MAN_H

#include "Globals.h"
#include <iostream>

using namespace std;

class Man
{
    public:
        Man();

        void initialise();
        void update();

        void move_up();
        void move_down();
        void move_left();
        void move_right();
        void still_y();
        void still_x();

        bool collide_monster(int monster_pos_x, int monster_pos_y);

        void loose_life();



        void set_pos_x(int pos_x){_pos_x = pos_x;}
        void set_pos_y(int pos_y){_pos_y = pos_y;}
        int get_pos_x(){return _pos_x;}
        int get_pos_y(){return _pos_y;}

        void set_direction_x(int direction_x){_direction_x = direction_x;}
        void set_direction_y(int direction_y){_direction_y = direction_y;}
        int get_direction_x(){return _direction_x;}
        int get_direction_y(){return _direction_y;}

        void set_speed_x(float speed_x){_speed_x = speed_x;}
        void set_speed_y(float speed_y){_speed_y = speed_y;}
        float get_speed_x(){return _speed_x;}
        float get_speed_y(){return _speed_y;}

        void set_alive(bool alive){_alive = alive;}
        bool get_alive(){return _alive;}

        void set_lives(int lives){_lives = lives;}
        int get_lives(){return _lives;}

    private:

        int _pos_x;
        int _pos_y;

        int _direction_x;
        int _direction_y;

        float _speed_x;
        float _speed_y;

        bool _alive;
        int _lives;

        bool LeftRight_on;
        bool UpDown_on;

};

#endif // MAN_H
